<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:70px;
}
.selectWidth2{
   width:205px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">基本信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"cellspacing="1">
	<tr>
		<td  width="135" align="right"><span class="color_red">*</span>展会名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="展会名称" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td  width="135" align="right"><span class="color_red">*</span>主办单位：</td>
		<td  colspan="5">
			<input  name="proposal/org_cname" label="主办单位" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/org_cname" />"/> 
		</td>
	</tr>
	<tr>
		<td  width="135" align="right"><span class="color_red">*</span>展会地点：</td>
		<td  colspan="5">
			<input  name="proposal/address" label="展会地点" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/address" />"/> 
		</td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td nowrap>
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" dateWidth1 required date" label="申报日期"></cpt:date> 
		</td>
		<td  align="right" nowrap><span class="color_red">*</span>展会开始日期：</td>
		<td nowrap>
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="dateWidth1 required date  dateCompare:end_date" label="展会开始日期" ></cpt:date> 
		</td>
		<td  align="right" nowrap><span class="color_red">*</span>展会结束时间：</td>
		<td  nowrap>
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="dateWidth1 required date" label="展会结束时间"  value="${end_date}" ></cpt:date> 
		</td>
	</tr>
	
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>展会组织机构：</td>
	<td nowrap colspan="5" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="research" label="市级" value="01" /><span style="vertical-align: middle;">市级</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="research" label="省级" value="02" /><span style="vertical-align: middle;">省级</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="research" label="部级" value="03" /><span style="vertical-align: middle;">部级</span></label>
	<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="research" label="其他国际性展会" value="04" /><span style="vertical-align: middle;">其他国际性展会</span></label>
	<input type="hidden" name="proposal/research_value" id="research_value" class="required" value="<x:out select="$xmlData/data/proposal/research_value" />" label="展会组织机构" /> 
	<input type="hidden" name="proposal/research_name" id="research_name" value="<x:out select="$xmlData/data/proposal/research_name" />" /></td>
	</tr>
	
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>企业参展情况：</td>
	<td nowrap  valign="middle">
	<label> <input type="radio" class="do " id="participation_01" style="vertical-align: middle;" onclick="participation('01');" name="participation" label="首次" value="01" /><span style="vertical-align: middle;">首次</span></label> 
	<label> <input type="radio" class="do " id="participation_02" style="vertical-align: middle;" onclick="participation('02');" name="participation" label="第次" value="02" /></label><span style="vertical-align: middle;">第<input name="proposal/participation_times" id="participation_times" label="企业参展情况次数" type="text"  class="input_css required gray valueGENum:participation_times:2"  disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0);" onchange="setCompanyValue();" value="<x:out select="$xmlData/data/proposal/participation_times" />"/>次</span> 
	<input type="hidden" name="proposal/participation_value" id="participation_value" class="required" value="<x:out select="$xmlData/data/proposal/participation_value" />" label="企业参展情况" /> 
	<input type="hidden" name="proposal/participation_name" id="participation_name" value="<x:out select="$xmlData/data/proposal/participation_name" />" /></td>
	
	<td align="right" nowrap><span class="color_red">*</span>是否市级以上出口品牌企业：</td>
	<td nowrap colspan="3" valign="middle">
	<label> <input type="radio" class="do " id="brand_01" style="vertical-align: middle;" name="brand" label="是" value="01" /><span style="vertical-align: middle;">是</span></label> 
	<label> <input type="radio" class="do " id="brand_02" style="vertical-align: middle;" name="brand" label="否" value="02" /><span style="vertical-align: middle;">否</span></label> 
	<input type="hidden" name="proposal/brand_value" id="brand_value" class="required" value="<x:out select="$xmlData/data/proposal/brand_value" />" label="是否市级以上出口品牌企业" /> 
	<input type="hidden" name="proposal/brand_name" id="brand_name" value="<x:out select="$xmlData/data/proposal/brand_name" />" /></td>
	</tr>

   <tr>
		<td  width="135" align="right"><span class="color_red">*</span>展出内容：</td>
		<td  colspan="5">
			<input  name="proposal/content" label="展出内容" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/content" />"/> 
		</td>
	</tr>
	
	
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>展位个数：</td>
		<td>
		    <input  name="proposal/stand_amount"   label="展位个数" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/stand_amount" />"/>
		</td> 
		<td align="right" nowrap><span class="color_red">*</span>展位面积(㎡)：</td>
		<td>
		    <input  name="proposal/stand_area"   label="展位面积" type="text" style="text-align: right;width:80%" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/stand_area" />"/> 
		</td> 
		<td  align="right" nowrap><span class="color_red">*</span>特装面积(㎡)：</td>
		<td  >
			<input  name="proposal/special_area"  label="特装面积" type="text" style="text-align: right;width:80%" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/special_area" />"/>
		</td>
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>展位费（万元）：</td>
		<td>
		    <input  name="proposal/stand_budget"   label="展位费" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/stand_budget" />"/>
		</td> 
		<td align="right" nowrap><span class="color_red">*</span>特装费（万元）：</td>
		<td>
		    <input  name="proposal/special_budget"   label="特装费" type="text" style="text-align: right;width:80%" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/special_budget" />"/>
		</td> 
		<td  align="right" nowrap><span class="color_red">*</span>展品运输费（万元）：</td>
		<td  >
			<input  name="proposal/freight_budget"  label="展品运输费" type="text" style="text-align: right;width:80%" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/freight_budget" />"/>
		</td>
	</tr>
	
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>签订合同数量：</td>
		<td>
		    <input  name="proposal/contract_amount"   label="签订合同数量" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/contract_amount" />"/>
		</td> 
		<td align="right" nowrap><span class="color_red">*</span>签订合同金额（万元）：</td>
		<td>
		    <input  name="proposal/contract_budget"   label="签订合同金额" type="text" style="text-align: right;width:80%" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/contract_budget" />"/>
		</td> 
		<td  align="right" nowrap><span class="color_red">*</span>实际成交金额（万元）：</td>
		<td  >
			<input  name="proposal/deal_budget" label="实际成交金额" type="text" style="text-align: right;width:80%" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/deal_budget" />"/>
		</td>
	</tr>

	<tr>
		<td class="t_bar" colspan="6">申请项目资金情况
		</td>
		</tr>
	<tr>
		<td   align="right">项目类别：</td>
		<td  ><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td   align="right" >支持方式：</td>
		<td   colspan="3"><span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
	</tr>

	<tr>
	
		
		<td align="right" ><span class="color_red">*</span>申请金额（万元）：</td>
		<td  >
			<input id="source_apply" name="proposal/total_funds" style="text-align:right;" onfocus="InitInput.setNumber(this,9,4,2)" label="申请金额" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/total_funds" />"/> 
		</td>
		<td  align="right">资金级次：</td>
		<td  colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	   
		<td  align="right">归口管理部门：</td>
		<td   >
			<span name="proposal/org_name">无锡市商务局</span> 
		</td>
		 <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" />
		</span>
		</td>
	</tr>
	
	<tr>
		<td  align="right"><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="6" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	<tr>
	<td colspan="6" class="t_bar">申请资助依据条款
	</tr>
	 <tr>
		<td colspan="6">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
	
	<tr>
	<td colspan="6" class="t_bar"><span class="color_red">*</span>参展情况概述（限400字）
	</tr>
	 <tr>
		<td colspan="6">
			<textarea id="summary" name="proposal/summary" rows="7" cols="130"  label="参展情况概述"  class="textarea required maxlength:400"><x:out select="$xmlData/data/proposal/summary" /></textarea>
		    <input type="hidden" name="proposal/summary_hidden" id="proposal/summary_hidden" value="<x:out select="$xmlData/data/proposal/summary_hidden" />"/>
		</td>
	</tr>
</table>
<br/>
<div class="t_bar">人员信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>


<script type="text/javascript">

$(document).ready(function() {
	if($("#participation_01").is(":checked")){
		participation('01');
	}
	if($("#participation_02").is(":checked")){
		participation('02');
	}
});

    
    function participation(val){
    	if(val=='01'){
    		$("#participation_times").addClass("gray");
    		$("#participation_times").attr("disabled",true);
    		$("#participation_times").val("");
    		$("#participation_times").removeClass("required");
    	}else{
    		$("#participation_times").removeClass("gray");
    		$("#participation_times").attr("disabled",false);
    		$("#participation_times").addClass("required");
    	}
    	
    }
    
    function setCompanyValue(){
    	var str = "第"+$("#participation_times").val()+"次";
    	$("#participation_name").val(str);
    }
</script>